<?php


namespace app\miniapp\validate;


use think\Validate;

class RepairValidate extends Validate
{
    protected $rule = [
        'order_id' => 'require',
        'images' => 'require',
        'name' => 'require',
        'mobile' => 'require',
        'remarks' => 'require'

    ];
    protected $message = [
        'order_id.require' => '订单id不能为空',
        'images.require' => '图片不能为空',
        'name.require' => '姓名不能为空',
        'mobile.require' => '手机号不能为空',
        'remarks.require' => '报修说明不能为空',

    ];
    protected $scene = [

        'add' => ['order_id','name','mobile','images','remarks'],
    ];

}